"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var SpaceUsageAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceUsageAnalyze.vue"));
var SpaceCategoryAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceCategoryAnalyze.vue"));
var SpaceTagAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceTagAnalyze.vue"));
var SpaceSizeAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceSizeAnalyze.vue"));
var SpaceUserAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceUserAnalyze.vue"));
var SpaceRankAnalyze_vue_1 = __importDefault(require("@/components/analyze/SpaceRankAnalyze.vue"));
var vue_router_1 = require("vue-router");
var vue_1 = require("vue");
var useLoginUserStore_ts_1 = require("@/stores/useLoginUserStore.ts");
var route = (0, vue_router_1.useRoute)();
// 空间 id
var spaceId = (0, vue_1.computed)(function () {
    var _a;
    return (_a = route.query) === null || _a === void 0 ? void 0 : _a.spaceId;
});
// 是否查询所有空间
var queryAll = (0, vue_1.computed)(function () {
    var _a;
    return !!((_a = route.query) === null || _a === void 0 ? void 0 : _a.queryAll);
});
// 是否查询公共空间
var queryPublic = (0, vue_1.computed)(function () {
    var _a;
    return !!((_a = route.query) === null || _a === void 0 ? void 0 : _a.queryPublic);
});
// 判断用户是否为管理员
var loginUserStore = (0, useLoginUserStore_ts_1.useLoginUserStore)();
var loginUser = loginUserStore.loginUser;
var isAdmin = (0, vue_1.computed)(function () {
    return loginUser.userRole === 'admin';
}); /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
    var __VLS_ctx = {};
    var __VLS_components;
    var __VLS_directives;
    // CSS variable injection 
    // CSS variable injection end 
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
        id: ("spaceAnalyzePage"),
    });
    __VLS_elementAsFunction(__VLS_intrinsicElements.h2, __VLS_intrinsicElements.h2)({});
    if (__VLS_ctx.queryAll) {
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
    }
    else if (__VLS_ctx.queryPublic) {
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
    }
    else {
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
        __VLS_elementAsFunction(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
            href: (("/space/".concat(__VLS_ctx.spaceId))),
            target: ("_blank"),
        });
        (__VLS_ctx.spaceId);
    }
    __VLS_elementAsFunction(__VLS_intrinsicElements.div)(__assign({ style: ({}) }));
    var __VLS_0 = {}.ARow;
    /** @type { [typeof __VLS_components.ARow, typeof __VLS_components.aRow, typeof __VLS_components.ARow, typeof __VLS_components.aRow, ] } */ ;
    // @ts-ignore
    var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
        gutter: (([16, 16])),
    }));
    var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([{
            gutter: (([16, 16])),
        }], __VLS_functionalComponentArgsRest(__VLS_1), false));
    var __VLS_6 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_8 = __VLS_7.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_7), false));
    // @ts-ignore
    /** @type { [typeof SpaceUsageAnalyze, ] } */ ;
    // @ts-ignore
    var __VLS_12 = __VLS_asFunctionalComponent(SpaceUsageAnalyze_vue_1.default, new SpaceUsageAnalyze_vue_1.default({
        spaceId: ((__VLS_ctx.spaceId)),
        queryAll: ((__VLS_ctx.queryAll)),
        queryPublic: ((__VLS_ctx.queryPublic)),
    }));
    var __VLS_13 = __VLS_12.apply(void 0, __spreadArray([{
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }], __VLS_functionalComponentArgsRest(__VLS_12), false));
    __VLS_11.slots.default;
    var __VLS_11;
    var __VLS_17 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_18 = __VLS_asFunctionalComponent(__VLS_17, new __VLS_17({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_19 = __VLS_18.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_18), false));
    // @ts-ignore
    /** @type { [typeof SpaceCategoryAnalyze, ] } */ ;
    // @ts-ignore
    var __VLS_23 = __VLS_asFunctionalComponent(SpaceCategoryAnalyze_vue_1.default, new SpaceCategoryAnalyze_vue_1.default({
        spaceId: ((__VLS_ctx.spaceId)),
        queryAll: ((__VLS_ctx.queryAll)),
        queryPublic: ((__VLS_ctx.queryPublic)),
    }));
    var __VLS_24 = __VLS_23.apply(void 0, __spreadArray([{
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }], __VLS_functionalComponentArgsRest(__VLS_23), false));
    __VLS_22.slots.default;
    var __VLS_22;
    var __VLS_28 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_29 = __VLS_asFunctionalComponent(__VLS_28, new __VLS_28({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_30 = __VLS_29.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_29), false));
    // @ts-ignore
    /** @type { [typeof SpaceTagAnalyze, ] } */ ;
    // @ts-ignore
    var __VLS_34 = __VLS_asFunctionalComponent(SpaceTagAnalyze_vue_1.default, new SpaceTagAnalyze_vue_1.default({
        spaceId: ((__VLS_ctx.spaceId)),
        queryAll: ((__VLS_ctx.queryAll)),
        queryPublic: ((__VLS_ctx.queryPublic)),
    }));
    var __VLS_35 = __VLS_34.apply(void 0, __spreadArray([{
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }], __VLS_functionalComponentArgsRest(__VLS_34), false));
    __VLS_33.slots.default;
    var __VLS_33;
    var __VLS_39 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_40), false));
    // @ts-ignore
    /** @type { [typeof SpaceSizeAnalyze, ] } */ ;
    // @ts-ignore
    var __VLS_45 = __VLS_asFunctionalComponent(SpaceSizeAnalyze_vue_1.default, new SpaceSizeAnalyze_vue_1.default({
        spaceId: ((__VLS_ctx.spaceId)),
        queryAll: ((__VLS_ctx.queryAll)),
        queryPublic: ((__VLS_ctx.queryPublic)),
    }));
    var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }], __VLS_functionalComponentArgsRest(__VLS_45), false));
    __VLS_44.slots.default;
    var __VLS_44;
    var __VLS_50 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_52 = __VLS_51.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_51), false));
    // @ts-ignore
    /** @type { [typeof SpaceUserAnalyze, ] } */ ;
    // @ts-ignore
    var __VLS_56 = __VLS_asFunctionalComponent(SpaceUserAnalyze_vue_1.default, new SpaceUserAnalyze_vue_1.default({
        spaceId: ((__VLS_ctx.spaceId)),
        queryAll: ((__VLS_ctx.queryAll)),
        queryPublic: ((__VLS_ctx.queryPublic)),
    }));
    var __VLS_57 = __VLS_56.apply(void 0, __spreadArray([{
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }], __VLS_functionalComponentArgsRest(__VLS_56), false));
    __VLS_55.slots.default;
    var __VLS_55;
    var __VLS_61 = {}.ACol;
    /** @type { [typeof __VLS_components.ACol, typeof __VLS_components.aCol, typeof __VLS_components.ACol, typeof __VLS_components.aCol, ] } */ ;
    // @ts-ignore
    var __VLS_62 = __VLS_asFunctionalComponent(__VLS_61, new __VLS_61({
        xs: ((24)),
        md: ((12)),
    }));
    var __VLS_63 = __VLS_62.apply(void 0, __spreadArray([{
            xs: ((24)),
            md: ((12)),
        }], __VLS_functionalComponentArgsRest(__VLS_62), false));
    if (__VLS_ctx.isAdmin) {
        // @ts-ignore
        /** @type { [typeof SpaceRankAnalyze, ] } */ ;
        // @ts-ignore
        var __VLS_67 = __VLS_asFunctionalComponent(SpaceRankAnalyze_vue_1.default, new SpaceRankAnalyze_vue_1.default({
            spaceId: ((__VLS_ctx.spaceId)),
            queryAll: ((__VLS_ctx.queryAll)),
            queryPublic: ((__VLS_ctx.queryPublic)),
        }));
        var __VLS_68 = __VLS_67.apply(void 0, __spreadArray([{
                spaceId: ((__VLS_ctx.spaceId)),
                queryAll: ((__VLS_ctx.queryAll)),
                queryPublic: ((__VLS_ctx.queryPublic)),
            }], __VLS_functionalComponentArgsRest(__VLS_67), false));
    }
    __VLS_66.slots.default;
    var __VLS_66;
    __VLS_5.slots.default;
    var __VLS_5;
    var __VLS_slots;
    var $slots;
    var __VLS_inheritedAttrs;
    var $attrs;
    var __VLS_refs = {};
    var $refs;
    var $el;
    return {
        attrs: {},
        slots: __VLS_slots,
        refs: $refs,
        rootEl: $el,
    };
}
;
var __VLS_self = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {
            SpaceUsageAnalyze: SpaceUsageAnalyze_vue_1.default,
            SpaceCategoryAnalyze: SpaceCategoryAnalyze_vue_1.default,
            SpaceTagAnalyze: SpaceTagAnalyze_vue_1.default,
            SpaceSizeAnalyze: SpaceSizeAnalyze_vue_1.default,
            SpaceUserAnalyze: SpaceUserAnalyze_vue_1.default,
            SpaceRankAnalyze: SpaceRankAnalyze_vue_1.default,
            spaceId: spaceId,
            queryAll: queryAll,
            queryPublic: queryPublic,
            isAdmin: isAdmin,
        };
    },
});
exports.default = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {};
    },
    __typeEl: {},
});
; /* PartiallyEnd: #4569/main.vue */
